package com.huobi.swap.api.response.market;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
public class SwapMarketDepthResponse {

    /**
     * "ch":"market.BTC-USDT.depth.step0",
     * "status":"ok",
     * "tick":{"asks":[[10329.11,26],[10329.12,100],[10329.13,100],[10329.14,100],[10329.15,100],[10329.16,100],[10329.18,100],[10329.19,100],[10329.2,101],[10329.21,102],[10329.22,101],[10329.222,1000],[10329.23,1100],[10329.24,1100],[10329.25,2000],[10329.26,1000],[10329.27,1000],[10329.3,100],[10329.4,100],[10329.5,100],[10329.6,100],[10329.7,100],[10329.8,100],[10329.9,100],[11100,100],[11100.1,100],[11329,100],[11329.1,100]],"bids":[[10328.993,814],[10328.992,1000],[10328.991,1000],[10328.98,1000],[10328.97,1000],[10328.96,1000],[10328.95,1000],[10328.94,1000],[10328.93,1000],[10328.92,1000],[10328.91,1000],[10328.9,1000],[10328.8,100],[10328.7,100],[10328.6,100],[10328.5,100],[10328.4,100],[10328.3,100],[10328.2,100],[10328.1,100],[10327.9,100],[10327.8,100],[10327.7,100],[10327.6,100],[10327.5,100],[10327.4,100],[10327.3,100],[10327.2,100],[10327.1,100],[10327,1],[10301.137,18],[10000,11],[9999,1000],[6000,85],[1111,1],[222,486]],"ch":"market.BTC-USDT.depth.step0","id":1601018648,"mrid":14502,"ts":1601018648094,"version":1601018648},
     * "ts":1601018648433
     */

    private String ch;
    private String status;
    private List<TickBean> tick;
    private Long ts;

    @Data
    @AllArgsConstructor
    public static class TickBean {
        /**
         * "asks":[[10329.11,26],[10329.12,100],[10329.13,100],[10329.14,100],[10329.15,100],[10329.16,100],[10329.18,100],[10329.19,100],[10329.2,101],[10329.21,102],[10329.22,101],[10329.222,1000],[10329.23,1100],[10329.24,1100],[10329.25,2000],[10329.26,1000],[10329.27,1000],[10329.3,100],[10329.4,100],[10329.5,100],[10329.6,100],[10329.7,100],[10329.8,100],[10329.9,100],[11100,100],[11100.1,100],[11329,100],[11329.1,100]],
         * "bids":[[10328.993,814],[10328.992,1000],[10328.991,1000],[10328.98,1000],[10328.97,1000],[10328.96,1000],[10328.95,1000],[10328.94,1000],[10328.93,1000],[10328.92,1000],[10328.91,1000],[10328.9,1000],[10328.8,100],[10328.7,100],[10328.6,100],[10328.5,100],[10328.4,100],[10328.3,100],[10328.2,100],[10328.1,100],[10327.9,100],[10327.8,100],[10327.7,100],[10327.6,100],[10327.5,100],[10327.4,100],[10327.3,100],[10327.2,100],[10327.1,100],[10327,1],[10301.137,18],[10000,11],[9999,1000],[6000,85],[1111,1],[222,486]],
         * "ch":"market.BTC-USDT.depth.step0",
         * "id":1601018648,
         * "mrid":14502,
         * "ts":1601018648094,
         * "version":1601018648
         */

        private String ch;
        private Integer id;
        private Long mrid;
        private Long ts;
        private Integer version;
        private List<List<BigDecimal>> asks;
        private List<List<BigDecimal>> bids;

    }
}
